package com.example.appathon13;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View.OnClickListener;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.TextView;

public class Test extends Activity implements OnClickListener{

	TextView view;
	
	public void onCreate(Bundle onSavedInstanceState){
		super.onCreate(onSavedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.test);
		
		Button b = (Button) findViewById(R.id.button);
		view = (TextView) findViewById(R.id.textview);
		b.setOnClickListener(this);
	}
	
	public void onClick(View arg0) {
		switch(arg0.getId()){
		case R.id.button:
			String s = "";
			s= getData();
			view.setText(s);
			break;
		}
	}
	
	public String getData(){
		return " ";
	}
}
